import request from '@/utils/request'
import api from './config'
const host = api.apiHost

// 报价列表
export function getQuoteList(params) {
  return request({
    url: host + '/quote/list',
    method: 'get',
    params
  })
}

// 新增报价
export function saveQuote(data) {
  return request({
    url: host + '/quote/save',
    method: 'post',
    data
  })
}

// 修改报价
export function updateQuote(data) {
  return request({
    url: host + '/quote/update',
    method: 'post',
    data
  })
}

// 获取报价详情
export function getQuote(params) {
  return request({
    url: host + '/quote/detail',
    method: 'get',
    params
  })
}

// 删除报价
export function deleteQuote(data) {
  return request({
    url: host + '/quote/delete',
    method: 'post',
    data
  })
}

// /quote/dropDown
export function getQuoteSelect(data) {
  return request({
    url: host + '/quote/listCurrencyAndRate',
    method: 'get',
    data
  })
}
